package com.saint.farmshop.Constants;

/**
 * Security配置相关常量
 *
 * @author Saint
 * @date 2022/05/21
 */
public final class SecurityConstants {

    /**
     * 角色的key
     **/
    public static final String ROLE_CLAIMS = "rol";

    /**
     * rememberMe 为 false 的时候过期时间是1个小时
     */
    public static final long EXPIRATION = 60 * 60L;

    /**
     * rememberMe 为 true 的时候过期时间是7天
     */
    public static final long EXPIRATION_REMEMBER = 60 * 60 * 24 * 7L;

    /**
     * 系统的白名单
     */
    public static final String[] SYSTEM_WHITELIST = {
            "/auth/*",
            "/news/*",
            "/newsType/*",
            "/shopsType/*",
            "/shop/*",
            "/static/**",
    };


    private SecurityConstants() {
    }

}
